Generating all Circular Shifts by Context-Free Grammars in Chomsky Normal Form
نویسنده
چکیده
Let {a1, a2, . . . , an} be an alphabet of n symbols and let Cn be the language of circular shifts of the word a1a2 · · · an; so Cn = {a1a2 · · · an−1an, a2a3 · · · ana1, . . . , ana1 · · · an−2an−1}. We discuss a few families of context-free grammars Gn (n ≥ 1) in Chomsky normal form such that Gn generates Cn. The grammars in these families are investigated with respect to their descriptional complexity, i.e., we determine the number of nonterminal symbols ν(n) and the number of rules π(n) of Gn as functions of n. These ν and π happen to be functions bounded by low-degree polynomials, particularly when we focus our attention to unambiguous grammars. Finally, we introduce a family of minimal unambiguous grammars for which ν and π are linear.
منابع مشابه
Generating All Circular Shifts by Context-Free Grammars in Greibach Normal Form
For each alphabet Σn = {a1, a2, . . . , an}, linearly ordered by a1 < a2 < · · · < an, let Cn be the language of circular or cyclic shifts over Σn, i.e., Cn = {a1a2 · · · an−1an, a2a3 · · · ana1, . . . , ana1 · · · an−2an−1}. We study a few families of context-free grammars Gn (n ≥ 1) in Greibach normal form such that Gn generates Cn. The members of these grammar families are investigated with ...
متن کاملGenerating all permutations by context-free grammars in Greibach normal form
We consider context-free grammars Gn in Greibach normal form and, particularly, in Greibach m-form (m = 1, 2) which generates the finite language Ln of all n! strings that are permutations of n different symbols (n ≥ 1). These grammars are investigated with respect to their descriptional complexity, i.e., we determine the number of nonterminal symbols and the number of production rules of Gn as...
متن کاملGenerating all permutations by context-free grammars in Chomsky normal form
Let Ln be the finite language of all n! strings that are permutations of n different symbols (n ≥ 1). We consider context-free grammars Gn in Chomsky normal form that generate Ln. In particular we study a few families {Gn}n≥1, satisfying L(Gn) = Ln for n ≥ 1, with respect to their descriptional complexity, i.e. we determine the number of nonterminal symbols and the number of production rules of...
متن کاملSeveral Aspects of Context Freeness for Hyperedge Replacement Grammars
In this paper we survey several aspects related to normal forms of hyperedge replacement grammars. Considering context free hyperedge replacement grammars we introduce, inspired by string grammars, Chomsky Normal Form and Greibach Normal Form. The algorithm of conversion is quite the same with the algorithm for string grammars. The important difference is related to the fact that hyperedge gram...
متن کاملTesting Distributional Properties of Context-Free Grammars
Recent algorithms for distributional learning of context-free grammars can learn all languages defined by grammars that have certain distributional properties: the finite kernel property (fkp) and the finite context property (fcp). In this paper we present some algorithms for approximately determining whether a given grammar has one of these properties. We then present the results of some exper...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید
ثبت ناماگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید
ورودعنوان ژورنال:
- Journal of Automata, Languages and Combinatorics
دوره 11 شماره
صفحات -
تاریخ انتشار 2006